package com.ir.mirrajabi.searchdialog.sample.model;

import ir.mirrajabi.searchdialog.core.Searchable;

import java.util.ArrayList;

/**
 * UserModel
 */
public class UserModel implements Searchable {
    private int mId;
    private String mName;
    private String mLastName;
    private int mAge;
    private ArrayList<String> mPhoneNumbers;

    public UserModel(int age, int id, String lastName, String name, ArrayList<String> phoneNumbers) {
        mAge = age;
        mId = id;
        mLastName = lastName;
        mName = name;
        mPhoneNumbers = phoneNumbers;
    }

    /**
     * getTitle
     * @return String
     */
    @Override
    public String getTitle() {
        return mName + " " + mLastName;
    }

    /**
     * getAge
     * @return int
     */
    public int getAge() {
        return mAge;
    }

    /**
     * setAge
     * @param age age
     * @return UserModel
     */
    public UserModel setAge(int age) {
        mAge = age;
        return this;
    }

    /**
     * getId
     * @return int
     */
    public int getId() {
        return mId;
    }

    /**
     * setId
     * @param id id
     * @return UserModel
     */
    public UserModel setId(int id) {
        mId = id;
        return this;
    }

    /**
     * getLastName
     * @return String
     */
    public String getLastName() {
        return mLastName;
    }

    /**
     * setLastName
     * @param lastName lastName
     * @return UserModel
     */
    public UserModel setLastName(String lastName) {
        mLastName = lastName;
        return this;
    }

    /**
     * getName
     * @return String
     */
    public String getName() {
        return mName;
    }

    /**
     * setName
     * @param name name
     * @return UserModel
     */
    public UserModel setName(String name) {
        mName = name;
        return this;
    }

    /**
     * getPhoneNumbers
     * @return ArrayList
     */
    public ArrayList<String> getPhoneNumbers() {
        return mPhoneNumbers;
    }

    /**
     * setPhoneNumbers
     * @param phoneNumbers phoneNumbers
     * @return UserModel
     */
    public UserModel setPhoneNumbers(ArrayList<String> phoneNumbers) {
        mPhoneNumbers = phoneNumbers;
        return this;
    }
}
